package com.mgkj.dto.yf;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

/**
 * @author : ssy
 * @date: 2024-05-27
 * @Description:
 */
@Data
@ApiModel("退货单Dto")
public class InitThdDto implements Serializable {

    @ApiModelProperty(value = "单别",required = true)
    @NotBlank(message = "单别不能为空")
    @JsonProperty("TI001")
    private String TI001;

    @ApiModelProperty(value = "单号",required = true)
    @NotBlank(message = "单号不能为空")
    @JsonProperty("TI002")
    private String TI002;

    @ApiModelProperty(value = "工厂",required = true)
    @NotBlank(message = "工厂不能为空")
    @JsonProperty("TI005")
    private String TI005;

    @ApiModelProperty(value = "供应商编号",required = true)
    @NotBlank(message = "供应商编号不能为空")
    @JsonProperty("TI004")
    private String TI004;


    @ApiModelProperty(value = "审核码",required = true)
    @Pattern(regexp = "^[NY]$",message = "只允许输入N|Y")
    @JsonProperty("TI013")
    private String TI013;

    @ApiModelProperty(value = "公司",required = true)
    @NotBlank(message = "公司不能为空")
    private String company;

    @ApiModelProperty(value = "退货单单身")
    private List<InitThdBodyDto> thdBodyDto;
}
